package com.source.exercise.dockercontroller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @Author wengqy
 * @Date 2020/12/18
 */
@Controller
public class LoginController {
    @GetMapping("/login")
    @ResponseBody
    public String login(){
        return "login success: now is "+new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS").format(new Date());
    }
}
